﻿using System;
using System.Collections;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Text;

namespace HaoCoding.DCdb.WaterfallTree
{
    /// <summary>
    /// 数据格式
    /// </summary>
    public class Scheme : IEnumerable<KeyValuePair<long, Locator>>
    {
        /// <summary>
        /// 安全字典，用于存储数据定位
        /// </summary>
        private ConcurrentDictionary<long, Locator> map = new ConcurrentDictionary<long, Locator>();

        public IEnumerator<KeyValuePair<long, Locator>> GetEnumerator()
        {
            return map.GetEnumerator();
        }

        IEnumerator IEnumerable.GetEnumerator()
        {
            return GetEnumerator();
        }
    }
}
